package com.cgc.venus.server.app.bean;

import java.util.List;
import java.util.Map;

/**
 * Created by 业哥 on 2017/12/8.
 * 镜像基本信息实体类
 */
public class ImageBaseBean {
    // 主键
    private String id = "";
    // 应用预设置名称
    private String appName = "";
    // 应用预设置名称(k8s)
    private String appNameKube = "";
    // 镜像名称
    private String image = "";
    // 镜像版本
    private String imageVersion;
    // 基本描述
    private String described = "";
    // 镜像类型 有状态: statefulSet,无状态: deployment
    private String appKind = "Deployment";
    // 请求内存 211Mi,1Gi
    private String requestsMemory = "126Mi";
    // 请求内存上限
    private String limitsMemory = "512Mi";
    // 部署副本数量
    private int replicas = 1;
    // 启动命令类型
    private int startCommand = 1;
    // 启动命令
    private String command = "";
    // 拉取镜像方式
    private String imagePullPolicy = "Always";
    // 创建时间
    private String createTime;
    // 最后创建时间
    private String lastUpdateTime;
    // 最大使用的cpu
    private String limitsCPU = "512m";


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppNameKube() {
        return appNameKube;
    }

    public void setAppNameKube(String appNameKube) {
        this.appNameKube = appNameKube;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDescribed() {
        return described;
    }

    public void setDescribed(String described) {
        this.described = described;
    }

    public String getAppKind() {
        return appKind;
    }

    public void setAppKind(String appKind) {
        this.appKind = appKind;
    }

    public String getRequestsMemory() {
        return requestsMemory;
    }

    public void setRequestsMemory(String requestsMemory) {
        this.requestsMemory = requestsMemory;
    }

    public String getLimitsMemory() {
        return limitsMemory;
    }

    public void setLimitsMemory(String limitsMemory) {
        this.limitsMemory = limitsMemory;
    }

    public int getReplicas() {
        return replicas;
    }

    public void setReplicas(int replicas) {
        this.replicas = replicas;
    }

    public int getStartCommand() {
        return startCommand;
    }

    public void setStartCommand(int startCommand) {
        this.startCommand = startCommand;
    }

    public String getImagePullPolicy() {
        return imagePullPolicy;
    }

    public void setImagePullPolicy(String imagePullPolicy) {
        this.imagePullPolicy = imagePullPolicy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getImageVersion() {
        return imageVersion;
    }

    public void setImageVersion(String imageVersion) {
        this.imageVersion = imageVersion;
    }

    public String getLimitsCPU() {
        return limitsCPU;
    }

    public void setLimitsCPU(String limitsCPU) {
        this.limitsCPU = limitsCPU;
    }
}
